export default {
  createJobType:{//创建任务类型，参数：code(选)、data(选)
    url: '/core/jobType/create',
    require:['token','clientid','name']
  },
  updateJobType:{//更新任务类型，参数：name(选)、code(选)、data(选)、enabled(选)
    url: '/core/jobType/update',
    require:['token','clientid','id']
  },
  getJobType:{//获取任务类型，参数：id/code
    url: '/core/jobType/get',
    require:['token','clientid']
  },
  deleteJobType:{//删除任务类型，参数：id/code
    url: '/core/jobType/delete',
    require:['token','clientid']
  },
  getJobTypeList:{//获取任务类型列表
    url: '/core/jobType/list',
    require:['token','clientid']
  },
  createJob:{//创建任务，参数：data(选)
    url: '/core/job/create',
    require:['token','clientid','jobTypeCode','departmentCode','memberId']
  },
  updateJob:{//更新任务，参数：data(选)
    url: '/core/job/update',
    require:['token','clientid','id']
  },
  getJob:{//获取任务
    url: '/core/job/get',
    require:['token','clientid','id']
  },
  deleteJob:{//删除任务
    url: '/mall/job/delete',
    require:['token','clientid','id']
  },
  // doTaskJob:{//执行任务
  //   url: '/core/job/doTask',
  //   require:['token','clientid','id']
  // },
  getJobList:{//获取任务列表,page、size(选)、departmentId、memberId(选)、state(选)、jobTypeCode(选)、key(选)
    url: '/mall/job/list',
    require:['token','clientid','departmentId']
  },
}
